taxi.Address = function(values) {
	this._lat = values != undefined ? values.lat : undefined;
	this._lon = values != undefined ? values.lon : undefined;
	this._latLon = (this._lat != undefined) && (this._lon != undefined) ? [
			this._lat, this._lon ] : undefined;
	this.addressString = values != undefined ? values.addressString : undefined;
}

taxi.Address.prototype.getLatLon = function(){
	return this._latLon;
}
taxi.Address.prototype.getLat = function(){
	return this._lat;
}
taxi.Address.prototype.getLon = function(){
	return this._lon;
}

taxi.Address.prototype.sameCoords = function(otherCoords){
	return (otherCoords[0] == this._lat) && (otherCoords[1] == this._lon);
}